observations
Class Observation

java.lang.Object
  extended byobservations.DomainObject
      extended byobservations.Observation
All Implemented Interfaces:
DomainInterface
Direct Known Subclasses:
Measurement

public class Observation
extends DomainObject

Observation Represents something like '10.10.04 bloodpressure high'. It's part of Fowler's 'Observation'-pattern. Observation links the object (patient) to a phenomenon.

Version:
1.0 2004-09-10
Author:
Sascha Hemminger
See Also:
Phenomenon, Patient

Constructor Summary
Observation()
          Default constructor for Observation.
Observation(Phenomenon relevantPhenomenon, boolean isPresent, Patient patient, java.util.Date whenObserved)
          Constructs an Observation object.
 
Method Summary
 Phenomenon getPhenomenon()
          Gives a valuation in quality for the observation.
 PhenomenonType getPhenomenonType()
          Gives the observations type.
 boolean isPresent()
          Gives information whether the observation is the latest one.
 java.util.Date whenObserved()
          Gives the date when observed.
 
Methods inherited from class observations.DomainObject
getName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Observation

public Observation()
Default constructor for Observation.


Observation

public Observation(Phenomenon relevantPhenomenon,
                   boolean isPresent,
                   Patient patient,
                   java.util.Date whenObserved)
Constructs an Observation object.

Parameters:
relevantPhenomenon - observed phenomenon
isPresent - true if observation is valid at the moment
patient - patient observed
whenObserved - when did you make the observation
Method Detail

getPhenomenon

public Phenomenon getPhenomenon()
Gives a valuation in quality for the observation.

Returns:
the phenomenon observed e.g. 'high'

getPhenomenonType

public PhenomenonType getPhenomenonType()
Gives the observations type.

Returns:
the type of the observed phenomenon e.g. 'bloodpressure'

isPresent

public boolean isPresent()
Gives information whether the observation is the latest one.

Returns:
true if observation is still valid else false

whenObserved

public java.util.Date whenObserved()
Gives the date when observed.

Returns:
when the phenomenon was observed